package com.jiedeng.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * @author 覃远龙
 * @ClassName: Check
 * @Description:
 * @date 2017/7/25 12:35
 */
@Entity(name = "t_Check")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class Check {

    @Id
    @Column(name = "ID")
    private String id;

    @Column(name = "Project_ID")
    private long projectId;

    @Column(name = "Task_ID")
    private String taskId;

    @Column(name = "Event_ID")
    private String eventId;

    @Column(name = "checkItem_ID")
    private long checkItemId;

    @Column(name = "Check_Person_ID")
    private long checkPersonId;

    @Column(name = "Check_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date checkTime;

    @Column(name = "Check_GPS")
    private String checkGPS;

    @Column(name = "Check_Compass")
    private String checkCompass;

    @Column(name = "Expression_Desc", length = 1000)
    private String expressionDesc;

    @Column(name = "Record_Text", length = 1000)
    private String recordText;

    @Column(name = "isCheck_File")
    private boolean isCheckFile;

    @Column(name = "Ispub")
    private boolean isPub;

    @Column(name = "Exam_Person_ID")
    private long examPersonId;

    @Column(name = "Close_text", length = 1000)
    private String closeText;

    @Column(name = "isColse_File")
    private boolean isCloseFile;

    @Column(name = "Close_Corp_ID")
    private long closeCorpId;

    @Column(name = "Close_Person_ID")
    private long closePersonId;

    @Column(name = "IsClose")
    private boolean isClose;

    @Column(name = "IsClose_Mark")
    private boolean isCloseMark;

    @Column(name = "Close_memo")
    private String closeMemo;

    @Column(name = "Verify_Person_ID")
    private long verifyPersonId;

    @Transient
    private CheckItem checkItem;

    @Transient
    private List<FileRecord> fileRecords;

    public List<FileRecord> getFileRecords() {
        return fileRecords;
    }

    public CheckItem getCheckItem() {
        return checkItem;
    }

    public void setCheckItem(CheckItem checkItem) {
        this.checkItem = checkItem;
    }

    public void setFileRecords(List<FileRecord> fileRecords) {
        this.fileRecords = fileRecords;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(long projectId) {
        this.projectId = projectId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public long getCheckItemId() {
        return checkItemId;
    }

    public void setCheckItemId(long checkItemId) {
        this.checkItemId = checkItemId;
    }

    public long getCheckPersonId() {
        return checkPersonId;
    }

    public void setCheckPersonId(long checkPersonId) {
        this.checkPersonId = checkPersonId;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getCheckGPS() {
        return checkGPS;
    }

    public void setCheckGPS(String checkGPS) {
        this.checkGPS = checkGPS;
    }

    public String getCheckCompass() {
        return checkCompass;
    }

    public void setCheckCompass(String checkCompass) {
        this.checkCompass = checkCompass;
    }

    public String getExpressionDesc() {
        return expressionDesc;
    }

    public void setExpressionDesc(String expressionDesc) {
        this.expressionDesc = expressionDesc;
    }

    public String getRecordText() {
        return recordText;
    }

    public void setRecordText(String recordText) {
        this.recordText = recordText;
    }

    public boolean isCheckFile() {
        return isCheckFile;
    }

    public void setCheckFile(boolean checkFile) {
        isCheckFile = checkFile;
    }

    public boolean isPub() {
        return isPub;
    }

    public void setPub(boolean pub) {
        isPub = pub;
    }

    public long getExamPersonId() {
        return examPersonId;
    }

    public void setExamPersonId(long examPersonId) {
        this.examPersonId = examPersonId;
    }

    public String getCloseText() {
        return closeText;
    }

    public void setCloseText(String closeText) {
        this.closeText = closeText;
    }

    public boolean isCloseFile() {
        return isCloseFile;
    }

    public void setCloseFile(boolean closeFile) {
        isCloseFile = closeFile;
    }

    public long getCloseCorpId() {
        return closeCorpId;
    }

    public void setCloseCorpId(long closeCorpId) {
        this.closeCorpId = closeCorpId;
    }

    public long getClosePersonId() {
        return closePersonId;
    }

    public void setClosePersonId(long closePersonId) {
        this.closePersonId = closePersonId;
    }

    public boolean isClose() {
        return isClose;
    }

    public void setClose(boolean close) {
        isClose = close;
    }

    public boolean isCloseMark() {
        return isCloseMark;
    }

    public void setCloseMark(boolean closeMark) {
        isCloseMark = closeMark;
    }

    public String getCloseMemo() {
        return closeMemo;
    }

    public void setCloseMemo(String closeMemo) {
        this.closeMemo = closeMemo;
    }

    public long getVerifyPersonId() {
        return verifyPersonId;
    }

    public void setVerifyPersonId(long verifyPersonId) {
        this.verifyPersonId = verifyPersonId;
    }
}
